//---------------------------------------------------------------------
//  This file is part of the Background Motion solution.
// 
//  Copyright (C) Mindscape (TM).  All rights reserved.
//  http://www.mindscape.co.nz
// 
//  THIS CODE AND INFORMATION ARE PROVIDED AS IS WITHOUT WARRANTY OF ANY
//  KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
//  IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
//  PARTICULAR PURPOSE.
//---------------------------------------------------------------------

using Mindscape.BackgroundMotion.Core.Providers;
using Mindscape.BackgroundMotion.Website.Infrastructure;

namespace Mindscape.BackgroundMotion.Website.Resources
{
  public class SilverlightStreaming : IResourceProvider
  {
    public ResourceDetails GetDetails(string identifier)
    {
      ResourceDetails details = new ResourceDetails();
      details.ContentType = Constants.ContentTypeIds.Video;
      details.Title = identifier.Substring(identifier.IndexOf("/") + 1);
      details.Url = string.Concat("https://silverlight.services.live.com/", identifier);
      return details;
    }
  }
}
